#include <CommandInsertEnvObj.h>
Inheritance diagram for CommandInsertEnvObj:

Public Member Functions | |
| CommandInsertEnvObj (osg::Vec3 pos, OSGWindows *osgwind, string pathname, float scale) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| EnvironmentObject * | envObj |
| vector< TraffEduObject * > | insertedObjs_ |
Definition at line 8 of file CommandInsertEnvObj.h.
|
||||||||||||||||||||
|
A constructor. Initializes osgwind_ and creates a new environmental object by using the parameter of pathname.
Definition at line 2 of file CommandInsertEnvObj.cpp. References OSGWindows::addObject(), envObj, TraffEduObject::getObjectGroup(), insertedObjs_, osgwind, osgwind_, and TraffEduObject::setPosition(). |
|
|
do the insertion of environmental object operation.
Implements Command. Definition at line 16 of file CommandInsertEnvObj.cpp. References OSGWindows::doAddGeode(), envObj, and osgwind_. |
|
|
undo the insertion of environmental object operation.
Implements Command. Definition at line 24 of file CommandInsertEnvObj.cpp. References OSGWindows::doDeleteGeode(), envObj, and osgwind_. |
|
|
a private variable. It is used to hold the created environmental object. Definition at line 22 of file CommandInsertEnvObj.h. Referenced by CommandInsertEnvObj(), execute(), and unexecute(). |
|
|
a private vector of TraffEduObjects. It holds the inserted environmental objects. Definition at line 28 of file CommandInsertEnvObj.h. Referenced by CommandInsertEnvObj(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 16 of file CommandInsertEnvObj.h. Referenced by CommandInsertEnvObj(), execute(), and unexecute(). |
1.4.6-NO